home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
online
/
amiral.EXE
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-11-28
|
4KB
|
152 lines
@echo off
cls
if not exist jb.exe goto noFile
if "%1" == "" goto help
if "%2" == "" goto noPath
if errorlevel 1 goto errorMsg
:path
for %%A in (A B C D E F G H I J K L a b c d e f g h i j k l) do if !%1 == !%%A goto okay1
goto help
:okay1
for %%A in ( : \ ) do if !%2 == !%%A goto help
echo . INSTALLING TO DRIVE %1:\%2
echo .
echo . OPERATION JUST BECAUSE INSTALLATION
echo .
md %1:\%2
echo . COPYING FILES
copy *.exe %1:\%2
goto success1
:noPath
for %%A in (A B C D E F G H I J K L a b c d e f g h i j k l) do if !%1 == !%%A goto okay
goto help
:okay
for %%A in (\ :) do if !%1 == !%%A goto help
echo . INSTALLING TO DRIVE %1:\OJB
echo .
echo . OPERATION JUST BECAUSE INSTALLATION
echo .
md %1:\OJB
echo . COPYING FILES
copy *.exe %1:\OJB
if errorlevel 1 goto errorMsg
goto success2
:help
cls
@echo off
echo .
echo . OPERATION JUST BECAUSE INSTALL UTILITY
echo .
echo . This program must be installed on a hard drive. To install this
echo . program on C drive, you would type "INSTALL C". This will put the
echo . game in the directory "OJB". If you wish to install this
echo . game to a different directory, type "INSTALL C name of directory"
echo .
echo . EXAMPLE: to install to D drive in the directory GAMES type......
echo .
echo "INSTALL D GAMES"
goto end
:noFile
cls
echo .
echo . AN ERROR HAS OCCURRED, INSTALLATION WAS UNSUCCESSFUL
echo .
echo . Sorry, the file "jb.exe" is not on this disk. This file must
echo . be available in this directory to attempt installation of this game.
echo . Please check all directories for this file. If found copy it to this
echo . directory and type "INSTALL" to continue.
goto end
:msg
cls
echo . AN ERROR HAS OCCURRED, INSTALLATION WAS UNSUCCESSFUL
echo .
echo . Sorry, at least one file required to run OPERATION JUST BECAUSE is missing.
echo . The disk may be too full to allow for all files to be decompressed or
echo . your souce disk may be bad. You must have at least 2.5 mega bytes of
echo . Hard Disk space for successful installation.
goto end
:errorMsg
cls
echo .
echo .
echo . AN ERROR HAS OCCURRED, INSTALLATION WAS UNSUCCESSFUL
goto end
:success1
cls
echo .
echo .
echo . DECOMPRESSING FILES
echo .
%1:
cd %1:\%2
if not exist jb.exe goto errorMsg
jb.exe
@echo off
cls
if not exist OJB.L goto msg
goto installComplete
:success2
cls
echo .
echo .
echo . DECOMPRESSING FILES
echo .
%1:
cd %1:\OJB
if not exist jb.exe goto errorMsg
jb.exe
@echo off
cls
if not exist OJB.L goto msg
:installComplete
echo .
echo .
echo . INSTALLATION COMPLETE
echo . TYPE "OJB" TO RUN OPERATION JUST BECAUSE
echo . or
echo . "GAMEBOOK" TO READ THE GAME DOCUMENTATION
echo .
echo .
echo . TO RUN THIS GAME IN THE FUTURE YOU NEED TO CHANGE TO THE DIRECTORY
echo . THAT THE GAME WAS INSTALLED TO THEN TYPE "OJB" AND PRESS ENTER
echo .
echo . EXAMPLE WITH THE GAME INSTALLED TO THE DIRECTORY "OJB". AFTER
echo . YOUR COMPUTER BOOTS UP, TYPE "CD\OJB", THEN PRESS ENTER. TYPE
echo . "OJB" AND PRESS ENTER. IF THIS GAME WAS INSTALLED TO A
echo . DIRECTORY OTHER THAN OJB, SUBSTITUTE THAT DIRECTORY NAME FOR
echo . OJB IN THE STATEMENT "CD\OJB".
echo .
del jb.exe
:end